package com.hawk.eye.server.domain.vo.req;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 *
 * @author salad
 * @date 2023-10-23
 */
@Data
public class DictReqVO {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    private Long parentId;

    @NotBlank(message = "字典名称不能为空")
    @Size(max = 15,message = "字典名称长度必须在1-15之间")
    private String label;

    @NotBlank(message = "字典值不能为空")
    private String value;

    private String type;

    private Integer sort;

    @Size(max = 1000,message = "字典名称长度必须在1000以内")
    private String description;

}
